//
//  TaDeHeaderView.m
//  NormalFramework
//
//  Created by beisheng03 on 2018/3/16.
//  Copyright © 2018年 beisheng. All rights reserved.
//

#import "TaDeHeaderView.h"

@interface TaDeHeaderView ()

@property (weak, nonatomic) IBOutlet UIView *imgBgView;
@property (weak, nonatomic) IBOutlet UIImageView *headerImageView;
@property (weak, nonatomic) IBOutlet UILabel *topLabel;
@property (weak, nonatomic) IBOutlet UILabel *bottomLabel;

@end

@implementation TaDeHeaderView

- (void)awakeFromNib{
    [super awakeFromNib];
    
    
    self.backgroundColor = themeColor;
    
    self.imgBgView.backgroundColor = viewBgGrey;
    
    self.imgBgView.layer.cornerRadius = 36;
    
    self.imgBgView.layer.masksToBounds = YES;
    
    self.headerImageView.layer.cornerRadius = 33;
    self.headerImageView.layer.masksToBounds = YES;
    
    self.topLabel.textColor = [UIColor whiteColor];
    
    self.topLabel.font = MYFONT(17);
    
    self.bottomLabel.textColor = [UIColor whiteColor];
    self.bottomLabel.font = BigTitleFont;
    
    
    [self.headerImageView sd_setImageWithURL:[NSURL URLWithString:DefualHeaderStr]];
    
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
